package com.xja.controller;

import com.xja.model.vo.resp.Result;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 蔡建国
 * Date  2025/4/20 19:45
 */
@RestController
@RequiredArgsConstructor
@Tag(name = "测试模块")
public class TestController {
    @GetMapping("/hello")
    public Result<String> hello() {
        return Result.success("Hello World!");
    }

    @GetMapping("/test/{str}")
    public Result<String> test(@PathVariable String str) {
        return Result.success(str);
    }

    @GetMapping("/test/search")
    public Result<String> search() {
        return Result.success("no problem");
    }
}